use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    // 首先将数组根据‘，’分割开，放入数组中11
    let parts: Vec<&str> = input_str.split(',').collect();
    // 用HashSet删除重复值
    let unique_items = parts.iter().cloned().collect::<HashSet<_>>().into_iter().collect::<Vec<&str>>();

    unique_items.len()
}
